package Adapter.ObjectAdapter;

/**
 * @Author zhangjinxi
 * @Date: Created in 13:46 2018/2/28
 * @Description:
 */
public class Adapter implements Targetable {

    private Source source;

    public Adapter(Source source) {
        super();
        this.source = source;
    }

    @Override
    public void method1() {
        source.method1();
    }

    @Override
    public void method2() {
        System.out.println("this is the targetable method!");
    }
}
